package components.events
{
	import components.managers.DragVO;
	
	import flash.events.Event;
	
	/**
	 *拖动事件 
	 * @author zn
	 * 
	 */	
	public class DragEvent extends Event
	{
		public static const DRAG_ENTER_EVENT:String="dragEnterEvent";
		
		public static const DRAG_EXIT_EVENT:String="dragExitEvent";
		
		public static const DRAG_DROP_EVENT:String="dragDropEvent";

		private var _data:DragVO;
		
		public function DragEvent(type:String,data:DragVO, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			
			_data=data;
		}
		
		public override function clone():Event
		{
			return new DragEvent(type,_data,bubbles,cancelable);
		}

		public function get data():DragVO
		{
			return _data;
		}

	}
}